# -*- coding: utf-8 -*-
# FileName:     rec_matrix.py
# time:         23/4/26 026 下午 9:09
# Author:       Zhou Hang
# Description:
import cv2


def rec_matrix(src, x_times, y_times):
    """
    将src的图片经过阵列得到的图像返回
    :param src: 原始图像
    :param x_times: 横向阵列次数
    :param y_times: 纵向阵列次数
    :return:
    """
    x_list = []
    for i in range(x_times):
        x_list.append(src)
    x_rec = cv2.hconcat(x_list)

    y_list = []
    for i in range(y_times):
        y_list.append(x_rec)
    new_rec = cv2.vconcat(y_list)
    return new_rec


def main():
    pass


if __name__ == "__main__":
    main()
